-
Notifications
You must be signed in to change notification settings - Fork 127
CSPL-4324 Emitting events for passwords, secrets, app fw, CM, scaling and smart store #1689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 21753278296Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 21858224621Details
💛 - Coveralls |
|
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA 2 out of 3 committers have signed the CLA. |
| if event.eventType != corev1.EventTypeWarning { | ||
| t.Errorf("Expected Warning event type for UpgradeBlockedVersionMismatch, got %s", event.eventType) | ||
| } | ||
| if !strings.Contains(event.message, "ClusterManager") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we check the whole message?
| if event.eventType != corev1.EventTypeWarning { | ||
| t.Errorf("Expected Warning event type for SecretMissing, got %s", event.eventType) | ||
| } | ||
| if !strings.Contains(event.message, "nonexistent-secret") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| if event.eventType != corev1.EventTypeWarning { | ||
| t.Errorf("Expected Warning event type for SecretInvalid, got %s", event.eventType) | ||
| } | ||
| if !strings.Contains(event.message, "test-secret") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| if event.eventType != corev1.EventTypeWarning { | ||
| t.Errorf("Expected Warning event type for SecretInvalid, got %s", event.eventType) | ||
| } | ||
| if !strings.Contains(event.message, "test-secret-sk") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
| if !strings.Contains(event.message, "test-secret-sk") { | ||
| t.Errorf("Expected event message to contain secret name 'test-secret-sk', got: %s", event.message) | ||
| } | ||
| if !strings.Contains(event.message, "s3SecretKey") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
| if event.eventType != corev1.EventTypeWarning { | ||
| t.Errorf("Expected Warning event type for AppRepositoryConnectionFailed, got %s", event.eventType) | ||
| } | ||
| if !strings.Contains(event.message, "test-vol") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
Description
It emits events for passwords, secrets, app fw, CM, scaling and smart store
Key Changes
Events:
Testing and Verification
Related Issues
Epic: https://splunk.atlassian.net/browse/CSPL-4324
PR Checklist